//路由
//增加相应路由需先添加路径对应的vue组件文件
var routes=[
    {
      chin: '订单管理',
      path:'/order',
      icon: 'el-icon-s-order',
      children:
        [{
          chin: '订单列表',
          name: 'orderlist',
          path: '/orderlist',
          icon: 'el-icon-s-claim',
          require: 'order/orderList'
        }, {
          chin: '失效订单',
          name: 'notorder',
          path: '/notorder',
          icon: 'el-icon-s-release',
          require: 'order/notOrder.vue'
        }]
    },
    {
      chin: '用户管理',
      path:'/users',
      icon: 'el-icon-reading',
      children:
        [{
          chin: '用户列表',
          name: 'user',
          path: '/user',
          icon: 'el-icon-s-order',
          require: 'user/Index.vue'
        }, {
          chin: '增加用户',
          name: 'adduser',
          path: '/adduser',
          icon: 'el-icon-s-order',
          require: 'user/addUser.vue'
        },{
          chin: '删除用户',
          name: 'deleuser',
          path: '/deleuser',
          icon: 'el-icon-s-order',
          require: 'user/deleUser.vue'
        }]
    }
  ]

module.exports={
    routes
}